<template>
  <div id="app">
    <el-container>
      <el-aside width="200px">
        <el-menu>
          <el-menu-item index="/employees" @click.native="goTo('/employees')">员工管理</el-menu-item>
          <el-menu-item index="/time" @click.native="goTo('/time')">计时管理</el-menu-item>
        </el-menu>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </div>
</template>

<script>
export default {
  methods: {
    goTo(path) {
      this.$router.push(path);
    },
  },
};
</script>
